class Greeter {
    // 类属性
    greeting:string
    // 构造方法
    constructor(message:string){
        this.greeting = message
    }
    // 类方法
    greet(){
        return "Hello "+this.greeting
    }
    getThis(){
        return this
    }
}

let greeter = new Greeter("世界")
console.log(greeter.greet())